<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script>
		//封装自己的reverse方法(数组)
		var arr1=[2,4,6,8,10];
		var arr2=[];
		function myReverse(arr3){
			for( var i=arr3.length-1;i>=0;i-- ){
				arr2.push(arr3[i]);
			}
			return arr2;
		}
		var a=myReverse(arr1);
		console.log(a);
	</script>
</head>
<body>
	
</body>
</html>